/*
 * @Author: your name
 * @Date: 2022-02-28 09:44:46
 * @LastEditTime: 2022-02-28 09:46:52
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \JS\day02\3-数组访问.js
 */
//如果数组元素大于数组最大下标 ，则打印undefined
var arr=[1,2,3,4];
console.log(arr[4]);
arr[4]='hello';
console.log(arr,arr.length);